
<script type="text/javascript">
    function backHome(){
        if(!confirm("do you want to save status currently?")) return false;
        var data = $('#form-register-account-student').serialize();
        $.ajax({
            'type':'POST',
            'url':'<?php echo Yii::app()->createUrl("site/saveCurrentlyDataInput") ?>',
        });
        return false;
    }
</script>

<?php /** @var BootActiveForm $form */
/*    $this->pageTitle=Yii::app()->name . ' - select language';
    $this->breadcrumbs=array(
            '言語選択',
    );
   */

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'form-register-account-student',
    'htmlOptions'=>array('class'=>'wells'),
)); ?>
<table cellspacing="-20">
    <?php  if($error) { ?>
    <tr style="border: 2px solid #e8e8e8">
        <td colspan="2">
            <table>
                <tr><td><?php echo $form->error($model, 'phonetic', array('class'=>'wrong_login'))?> </td></tr>
                <tr><td><?php echo $form->error($model_member, 'name', array('class'=>'wrong_login'))?> </td></tr>
                <tr><td><?php echo $form->error($model, 'romaji', array('class'=>'wrong_login'))?> </td> </tr>
                <tr><td><?php echo $form->error($model, 'birth_date', array('class'=>'wrong_login'))?></td></tr>
                <tr><td><?php echo $form->error($model_member, 'email', array('class'=>'wrong_login'))?> </td></tr>
                <tr><td><?php echo $form->error($model, 'id_NO', array('class'=>'wrong_login'))?></td></tr>
                <tr><td><?php echo $form->error($model, 'student_NO', array('class'=>'wrong_login'))?> </td></tr>
                <tr><td><?php echo $form->error($model, 'address', array('class'=>'wrong_login'))?></td></tr>
                <tr><td><?php echo $form->error($model, 'phone', array('class'=>'wrong_login'))?></td></tr>
                <tr><td><?php echo $form->error($model, 'mobile', array('class'=>'wrong_login'))?></td></tr>
                <tr><td><?php echo $form->error($model, 'father_name', array('class'=>'wrong_login'))?></td> </tr>
                <tr><td><?php echo $form->error($model, 'father_phone', array('class'=>'wrong_login'))?> </td></tr>
                <tr><td><?php echo $form->error($model, 'class_name', array('class'=>'wrong_login'))?></td> </tr>
                <tr><td><?php echo $form->error($model, 'male', array('class'=>'wrong_login'))?></td> </tr>
                <tr><td><?php echo $form->error($model, 'url_avatar', array('class'=>'wrong_login'))?></td> </tr>
            </table>                                    
        </td>
    </tr>
    <?php  } ?>
    <tr>
        <td colspan="2" style="color: #2490d8; font-weight: bold">
            <?php echo Yii::t('strings','Personal information') ?>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="border-top: 1px solid #e8e8e8;">
            <div class="requested_color" style="display: inline"> * </div>  <div style="display: inline">  <?php echo Yii::t('strings','Required Filling Out') ?> </div>
        </td>
    </tr>
    <tr>
        <td width="70%" style="padding: 0px 1px 0px 0px;">
            <table style="width: 100%; margin: 0px; ">
                <tbody>
                    <tr style="background-color: #ecf0f1;border-bottom: 2px solid white;">
                        <td style="text-align: right;"> <?php echo $form->labelEx($model, 'phonetic') ?></td>
                        <td height="30" style="padding-top: 10px;">
                            
                            <?php echo $form->textField($model, 'phonetic', array('class'=>'span3')); ?>
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right;"> <?php echo $form->labelEx($model_member, 'name') ?></td>
                        <td style="padding-top: 10px;">
                            
                            <?php echo $form->textField($model_member, 'name', array('class'=>'span3')); ?>
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right;"> <?php echo $form->labelEx($model, 'romaji') ?></td>
                        <td style="padding-top: 10px;">
                            
                            <?php echo $form->textField($model, 'romaji', array('class'=>'span3')); ?>
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right;"> <?php echo $form->labelEx($model_member, 'email') ?></td>
                        <td style="padding-top: 10px;">
                            
                            <?php echo $form->textField($model_member, 'email', array('class'=>'span3')); ?>
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right;"> <?php echo $form->labelEx($model, 'birth_date') ?></td>
                        <td style="padding-top: 10px;">
                            
                           
                      <?php   $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                            'model' => $model,
                          'language' => 'ja',                            
                            'options'=>array(
                                'showSecond'=>true,
                                'showAnim'=>'slide',
                            ),
                            'attribute' => 'birth_date',
                            'htmlOptions' => array(
                                'size' => '20',         // textField size
                                'maxlength' => '20',    // textField maxlength
                            ),
                            'options'=> array(
                            'dateFormat'=>'yy/mm/dd', 
                            'altFormat'=>'dd-mm-yy', 
                            'changeMonth'=>'true', 
                            'changeYear'=>'true', 
                            'yearRange'=>'1980:2000', 
                          //  'showOn'=>'both',
                            //'buttonText'=>'<i class="icon-calendar"></i>'
                            ),
                        ));
                      ?>
                        <img style="margin-top: -15px;" src="<?php echo Yii::app()->request->baseUrl; ?>/images/regist/icondate.png">   
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right;"> <?php echo $form->labelEx($model, 'id_NO') ?></td>
                        <td style="padding-top: 10px;">
                            
                            <?php echo $form->textField($model, 'id_NO', array('class'=>'span3')); ?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td width="30%" style="padding: 0px 0px 1px 3px;">
            <table style="width: 100%;margin: 0px;">
                <tbody>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white; ">
                        <td>
                             
                        </td>
                        
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <?php echo Yii::t('strings','Picture') ?>(3*4cm)                         
                                        <?php  $this->widget('ext.EAjaxUpload.EAjaxUploadWidget', array(
                                       'id'=>CHtml::getIdByName('MyAjaxUpload'),
                                       'config'=>array(
                                       //'validation' => $ajaxValidation,
                                           // It's mandator that you pass an server-side endpoint which receives the file uploads.
                                           'request'=>array(
                                               'endpoint'=>Yii::app()->createUrl('site/uploadAvatar/path/'.$rdName)
                                           ),
                                           // You'll probably need to handle completion on the client-side
                                           'callbacks' => array(
                                               'onComplete'=>"js:function(id, fileName, responseJSON){ if(responseJSON['success']){ var upload_image_url = '".Yii::app()->request->baseUrl."' + responseJSON['filename'];
                                                                                                               document.getElementById('upload-preview').src = upload_image_url;$('#url_avatar').val(responseJSON['filename']);
                                                                                $('.qq-upload-success').css('display','none');
                                                                                $('.qq-upload-fail').css('display','none');
                                                                                $('#hidden_image_field').attr('value',responseJSON['filename']);
                                                                                $('#hidden_image_folder').attr('value',responseJSON['folder']);
                                                                                $('#asset_id').attr('value',responseJSON['asset_id']); 
                                                                                $('#imgAvatar').val(responseJSON['filename']);
                                                                                
                                                                                }else{
                                                                                    alert('File error. Please check again.');
                                                                                    }
                                                                                }",
                
                                                                ),
                                                                // Custom uploader template to give it a bootstrap feeling.
                                                                'template' => '<div class="qq-uploader span4" style="margin-top:20px;width:100px;">'
                                                                        .'<pre class="qq-upload-drop-area"><span>{dragZoneText}</span></pre>'
                                                                        .'<div class="qq-upload-button btn btn-success" style="width: auto;">アップロード</div>'
                                                                        .'<span class="qq-drop-processing"><span>{dropProcessingText}</span><span class="qq-drop-processing-spinner"></span></span>'
                                                                        .'<ul class="qq-upload-list" style="margin-top: 10px; text-align: center;display:none;"></ul>'
                                                                    .'</div>',
                                                                // Fineuploader classes customized for bootstrap
                                                                'classes' => array(
                                                                    'success' => 'alert alert-success',
                                                                    'fail' => 'alert alert-error'
                                                                ),
                                                            )
                                                        )); ?>                           
                        </td>
                        <td style="padding-bottom: 70px;text-align: right;padding-right: 40px;">
                            <?php echo $form->hiddenField($model,'url_avatar', array('id'=>'url_avatar')) ?>
                            <img style="width: 118px; height: 151px;" id="upload-preview" src="<?php echo Yii::app()->request->baseUrl; ?>/images/regist/avatarimg.png">
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right">

                        </td>
                        <td style="text-align: right;">
                               <?php echo CHtml::radioButton('males', false, array('value'=>1, 'id'=>'male')) ?>
                               &nbsp;&nbsp;&nbsp; <?php echo Yii::t('strings','Male') ?>            
                        </td>
                        <td height="45px;">
                             <?php echo CHtml::radioButton('males', false, array('value'=>0, 'id'=>'female')) ?>
                               &nbsp;&nbsp;&nbsp; <?php echo Yii::t('strings','Female') ?>
                        </td>
                    </tr>
                    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
                        <td style="text-align: right;"> </td>
                        <td style="text-align: right;">
                            <?php echo $form->labelEx($model, 'student_NO') ?>
                        </td>
                        <td style="padding-top: 10px;">                           
                            
                            
                            <?php echo $form->textField($model, 'student_NO', array('class'=>'span3')); ?>
                        </td>
                    </tr>
                  
                </tbody>
            </table>
        </td>
    </tr>
    
    <tr style="background-color: #ecf0f1; border-bottom: 2px solid white;">
        <td colspan="2">
            <table style="margin: 0px;">
                <tr>
                    <td style="text-align: right;">
                      <?php echo $form->labelEx($model, 'address') ?>   
                    </td>
                    <td>
                         
                         <?php echo $form->textArea($model, 'address', array('class'=>'span3','style'=>'width:428px;')); ?>
                    </td>
                </tr>
            </table>
        </td> 
    </tr>
    <!-- begin tel -->
    <tr style="background-color: #ecf0f1;">
        <td colspan="2" style="padding-left: 10%;">
            Tel.<div class="requested_color">*</div>
        </td>
    </tr>
    <tr style="background-color: #f5f8f9;">
        <td>
            <table style="margin:0px;">
                <tr>
                    <td style="text-align: right; width: 20%;">
                      <?php echo $form->labelEx($model, 'phone') ?>  
                    </td>
                    <td>
                     
                       <?php echo $form->textField($model, 'phone', array('class'=>'span3')); ?>  
                    </td>
                </tr>
            </table>       
       </td>
         <td>
             <table style="margin: 0px;">
                <tr>
                    <td style="width:20%">
                      <?php echo $form->labelEx($model, 'mobile') ?>  
                    </td>
                    <td>
                      
                       <?php echo $form->textField($model, 'mobile', array('class'=>'span3')); ?>  
                    </td>
                </tr>
            </table>                    
        </td>
    </tr>
    <tr style="background-color: #ecf0f1; border-top: 2px solid white;">
        <td colspan="2" style="padding-left: 7%;">
            <?php echo Yii::t('strings','Parent information') ?>.<div class="requested_color">*</div>
        </td>
    </tr>
    <tr style="background-color: #f5f8f9;">
        <td>
            <table style="margin:0px;">
                <tr>
                    <td style="text-align: right; width: 20%;">
                      <?php echo $form->labelEx($model, 'father_name') ?>  
                    </td>
                    <td>

                       <?php echo $form->textField($model, 'father_name', array('class'=>'span3')); ?>  
                    </td>
                </tr>
            </table>       
       </td>
         <td>
             <table style="margin: 0px;">
                <tr>
                    <td>
                      <?php echo $form->labelEx($model, 'father_phone') ?>  
                    </td>
                    <td>
                       <?php echo $form->textField($model, 'father_phone', array('class'=>'span3')); ?>  
                    </td>
                </tr>
            </table>                    
        </td>
    </tr>  
    <tr style="background-color: #ecf0f1;">
        <td colspan="2">
              <table style="margin: 0px;">
                <tr>
                    <td style="text-align: right; width: 12%">
                      <?php echo $form->labelEx($model, 'class_name') ?>   
                    </td>
                    <td>

                         <?php echo $form->textField($model, 'class_name', array('class'=>'span3','style'=>'width:428px;')); ?>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <h5 style="color: #2490d8"> Education</h5>
        </td>
    </tr>
    <tr style="background-color: #ecf0f1;">
        <td>
            <table style="margin:0px;">
                <tr>
                    <td style="width: 20%; text-align: right;">
                        <?php echo Yii::t('strings','Final Place') ?>
                    </td>
                    <td>
                        <?php echo $form->dropDownList($model, 'final_year', $model->getFinalYear(), array(
                            'style'=>'width:100px;',
                            'empty'=>Yii::t('strings','Year'),          
                        )) ?>
                      <?php echo $form->dropDownList($model, 'final_month', $model->getFinalMonth(), array(
                            'style'=>'width:100px;',
                            'empty'=>Yii::t('strings','Month')
                        )) ?>
                    </td>
                </tr>
            </table> 
        </td>
        <td>
            
        </td>
    </tr>
    <tr style="background-color: #f5f8f9;">
        <td>
            <table style="margin:0px;">
                <tr>
                    <td style="width: 20%">
                       <?php echo $form->labelEx($model, 'final_schoolAddress') ?>   
                    </td>
                    <td>
                       <?php echo $form->error($model, 'final_schoolAddress', array('class'=>'wrong_login')) ?>  
                       <?php echo $form->textField($model, 'final_schoolAddress', array('class'=>'span3')); ?>                         
                    </td>
                </tr>
            </table>
        </td>
        <td>
            <table style="margin:0px;">
                <tr>
                    <td style="width:25%">
                       <?php echo $form->labelEx($model, 'final_address') ?>   
                    </td>
                    <td>
                       <?php echo $form->error($model, 'final_address', array('class'=>'wrong_login')) ?>  
                       <?php echo $form->textField($model, 'final_address', array('class'=>'span3')); ?>                         
                    </td>
                </tr>
            </table>            
        </td>
    </tr>
    <tr style="background-color: #ecf0f1;">
        <td colspan="2" style="padding-left: 10%; border-top: 2px solid white;">
           <?php echo Yii::t('strings','Studying Place') ?> 
        </td>
    </tr>
    <tr style="background-color: #f5f8f9;">
        <td>
             <table style="margin:0px;">
                <tr>
                    <td style="width: 20%">
                       <?php echo $form->labelEx($model, 'studying_schoolName') ?>   
                    </td>
                    <td>
                       <?php echo $form->error($model, 'studying_schoolName', array('class'=>'wrong_login')) ?>  
                       <?php echo $form->textField($model, 'studying_schoolName', array('class'=>'span3')); ?>                         
                    </td>
                </tr>
            </table>           
        </td>
        <td>
              <table style="margin:0px;">
                <tr>
                    <td style="width: 25%">
                       <?php echo $form->labelEx($model, 'studying_faculty') ?>   
                    </td>
                    <td>
                       <?php echo $form->error($model, 'studying_faculty', array('class'=>'wrong_login')) ?>  
                       <?php echo $form->textField($model, 'studying_faculty', array('class'=>'span3')); ?>                         
                    </td>
                </tr>
            </table>   
        </td>
    </tr>
        <tr style="background-color: #f5f8f9; border-top: 2px solid white;">
        <td>
             <table style="margin:0px;">
                <tr>
                    <td style="width: 20%">
                       <?php echo $form->labelEx($model, 'studying_dept') ?>   
                    </td>
                    <td>
                       <?php echo $form->error($model, 'studying_dept', array('class'=>'wrong_login')) ?>  
                       <?php echo $form->textField($model, 'studying_dept', array('class'=>'span3')); ?>                         
                    </td>
                </tr>
            </table>           
        </td>
        <td>
              <table style="margin:0px;">
                <tr>
                    <td style="width: 25%">
                       <?php echo $form->labelEx($model, 'studying_grade') ?>   
                    </td>
                    <td>
                       <?php echo $form->error($model, 'studying_grade', array('class'=>'wrong_login')) ?>  
                       <?php echo $form->textField($model, 'studying_grade', array('class'=>'span3')); ?>                         
                    </td>
                </tr>
            </table>   
        </td>
    </tr>
    <tr style="background-color: #ecf0f1;">
        <td colspan="2" style="padding-left: 10px; border-top: 2px solid white;">
           <?php echo Yii::t('strings','Ability/ Licensing/ Qualifications') ?> 
        </td>
    </tr>
    <?php
        foreach ($infoOther->AbilityDetail as $key => $value) { ?>
            <tr style="background-color: #f5f8f9;border-top: 2px solid white;">
                <td colspan="2">
                      <table style="margin:0px;">
                        <tr>
                            <td style="width: 20%">
                            <?php echo $form->dropDownList($infoOther,'abiYear[]', $model->getFinalYear(), array(
                               'style'=>'width:100px;',
                                'empty'=>Yii::t('strings','Year'),
                           )) ?>
                           <?php echo $form->dropDownList($infoOther,'abiMonth[]', $model->getFinalMonth(), array(
                               'style'=>'width:100px;',
                               'empty'=>Yii::t('strings','Month'),
                           )) ?>                         
                            </td>
                            <td style="width: 10%; text-align: right;">
                                <?php echo Yii::t('strings','Detail') ?>   
                            </td>
                            <td>
                               <?php echo $form->textArea($infoOther,'AbilityDetail[]', array('class'=>'span3', 'style'=>'width:500px;')); ?>                         
                            </td>
                        </tr>
                    </table>             
                </td>
        <?php }
    ?>
    </tr>
    <tr>
        <td colspan="2" style="color:#2490d8; "><?php echo Yii::t('strings','Experience') ?></td>
    </tr>
    <tr style="background-color: #ecf0f1;">
        <td colspan="2" style="padding-left: 10px;">
            <?php echo Yii::t('strings','Domestic/ Overseas') ?>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="padding: 0px;">
            <table style="margin: 0px;">
                <tr>
                    <td style="background-color: #ecf0f1;text-align: right;">
                         <?php echo Yii::t('strings','Domestic') ?>
                    </td>
                    <td style="padding: 0px;">
                  <table style="margin: 0px;">
                   <?php foreach($infoOther->DomesticDetail as $key=>$value){  ?>
                   <tr style="background-color: #f5f8f9; border-top: 2px solid white;">
                    <td>
                    <?php echo $form->dropDownList($infoOther, 'DomesticYear[]', $model->getFinalYear(), array(
                       'style'=>'width:100px;',
                        'empty'=>Yii::t('strings','Year'),
                   )) ?>
                   <?php echo $form->dropDownList($infoOther, 'DomesticMonth[]', $model->getFinalMonth(), array(
                       'style'=>'width:100px;',
                       'empty'=>Yii::t('strings','Month'),
                   )) ?>                         
                    </td>
                    <td>
                        <?php echo Yii::t('strings','Detail') ?>
                    </td>
                    <td>
                 <?php echo $form->textArea($infoOther, 'DomesticDetail[]', array('class'=>'span3', 'style'=>'width:500px;')); ?>        
                    </td>
                </tr> <?php }
                ?>
            </table>                        
                    </td>
                </tr>
            </table>
        </td>

    </tr>
    
    <tr style="border-top: 3px solid white;">
        <td colspan="2" style="padding: 0px;">
            <table style="margin: 0px;">
                <tr>
                    <td style="background-color: #ecf0f1;text-align: right;">
                         <?php echo Yii::t('strings','Overseas') ?>
                    </td>
                    <td style="padding: 0px;">
               <table style="margin: 0px;">
                   <?php foreach ($infoOther->OverseasDetal as $key => $value) { ?>            
                   <tr style="background-color: #f5f8f9;border-top: 2px solid white;">
                    <td>
                        <?php echo $form->dropDownList($infoOther,'OverseasYear[]', $model->getFinalYear(), array(
                           'style'=>'width:100px;',
                            'empty'=>Yii::t('strings','Year'),
                       )) ?>
                       <?php echo $form->dropDownList($infoOther,'OverseasMonth[]', $model->getFinalMonth(), array(
                           'style'=>'width:100px;',
                           'empty'=>Yii::t('strings','Month'),
                       )) ?>                         
                    </td>
                    <td>
                        <?php echo Yii::t('strings','Detail') ?>
                    </td>
                    <td>
                 <?php echo $form->textArea($infoOther,'OverseasDetal[]', array('class'=>'span3', 'style'=>'width:500px;')); ?>        
                    </td>
                </tr> <?php } ?>
            </table>                        
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr style="background-color: #ecf0f1; border-top: 3px solid white;">
        <td colspan="2">
            <table style="margin: 0px;">
                <tr>
                    <td style="text-align: right; width: 20%;">
                          <?php echo $form->labelEx($model,'job_objective') ?>
                    </td>
                    <td>
                       <?php echo $form->textArea($model, 'job_objective', array('class'=>'span3', 'style'=>'width:500px;')); ?>   
                    </td>
                </tr>
            </table>
        </td> 
    </tr>
    <tr style="background-color: #ecf0f1; border-top: 3px solid white;">
        <td colspan="2">
            <table style="margin: 0px;">
                <tr>
                    <td style="text-align: right; width: 20%;">
                          <?php echo $form->labelEx($model, 'admiss_purpose') ?> 
                    </td>
                    <td>
                       <?php echo $form->textArea($model, 'admiss_purpose', array('class'=>'span3', 'style'=>'width:500px;')); ?>   
                    </td>
                </tr>
            </table>
        </td> 
    </tr>
    <tr>
        <td colspan="2" style="color: #2490d8">
            <?php echo Yii::t('strings','Survey') ?>
        </td>
    </tr>
    <tr style="background-color: #ecf0f1;">
        <td colspan="2">
            <table>
                <tr>
                    <td style="width: 20%;">
                       <?php echo Yii::t('strings','After coming back, what do you want to do?') ?> 
                    </td>
                    <td>
                         <?php echo $form->textArea($model_survey, 'com_back', array('class'=>'span3', 'style'=>'width:500px;')); ?>   
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr style="background-color: #ecf0f1; border-top: 2px solid white;">
        <td colspan="2">
            <table style="margin:0px;">
                <tr>
                    <td width="50%">
                      <?php echo Yii::t('strings','Do you have a mobile phone?') ?>    
                    </td>
                    <td>
                        <?php echo CHtml::radioButton('survey_mobile', false, array('value'=>1, 'id'=>'survey_mobile')) ?>
                        &nbsp;&nbsp;&nbsp; <?php echo Yii::t('strings','Yes') ?>                        
                    </td>
                    <td>
                         <?php echo CHtml::radioButton('survey_mobile', false, array('value'=>0, 'id'=>'survey_mobile')) ?>  
                             &nbsp;&nbsp;&nbsp;<?php echo Yii::t('strings','No') ?>     
                    </td>
                </tr>
            </table>
        </td>
    </tr>
        <tr style="background-color: #ecf0f1; border-top: 2px solid white;">
        <td colspan="2">
            <table style="margin:0px;">
                <tr>
                    <td width="50%">
                     <?php echo Yii::t('strings','Did you buy Japanese for everyone CD?') ?>   
                    </td>
                    <td>
                        <?php echo CHtml::radioButton('survey_cd', false, array('value'=>1, 'id'=>'survey_cd')) ?>
                        &nbsp;&nbsp;&nbsp; <?php echo Yii::t('strings','Yes') ?>                        
                    </td>
                    <td>
                         <?php echo CHtml::radioButton('survey_cd', false, array('value'=>0, 'id'=>'survey_cd')) ?>  
                             &nbsp;&nbsp;&nbsp;<?php echo Yii::t('strings','No') ?>     
                    </td>
                </tr>
            </table>
        </td>
    </tr>
        <tr style="background-color: #ecf0f1; border-top: 2px solid white;">
        <td colspan="2">
            <table style="margin:0px;">
                <tr>
                    <td width="50%">
                    <?php echo Yii::t('strings','Do you listen to Japanese for Everyone CD?') ?>   
                    </td>
                    <td>
                        <?php echo CHtml::radioButton('survey_listen', false, array('value'=>1, 'id'=>'survey_listen')) ?>
                        &nbsp;&nbsp;&nbsp; <?php echo Yii::t('strings','Yes') ?>                        
                    </td>
                    <td>
                         <?php echo CHtml::radioButton('survey_listen', false, array('value'=>0, 'id'=>'survey_listen')) ?>  
                             &nbsp;&nbsp;&nbsp;<?php echo Yii::t('strings','No') ?>     
                    </td>
                </tr>
            </table>
        </td>
    </tr>
     <tr style="background-color: #ecf0f1; border-top: 2px solid white;">
        <td colspan="2">
            <table style="margin:0px;">
                <tr>
                    <td width="50%">
                    <?php echo Yii::t('strings','Have you saved voice file of Japanese for Everyone in mobile?') ?>   
                    </td>
                    <td>
                        <?php echo CHtml::radioButton('survey_voice', false, array('value'=>1, 'id'=>'survey_voice')) ?>
                        &nbsp;&nbsp;&nbsp; <?php echo Yii::t('strings','Yes') ?>                        
                    </td>
                    <td>
                         <?php echo CHtml::radioButton('survey_voice', false, array('value'=>0, 'id'=>'survey_voice')) ?>  
                             &nbsp;&nbsp;&nbsp;<?php echo Yii::t('strings','No') ?>     
                    </td>
                </tr>
            </table>
        </td>
    </tr>

    <tr>
        <td colspan="2" style="color: #2490d8">
            <?php echo Yii::t('strings','※Before filling out the application form, please read the following things:') ?>  
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <?php echo Yii::t('strings','Would you please let we use your picture, etc.. in public relations activities?  (Agree/ Not Agree)') ?><br>
            <?php echo Yii::t('strings','*　Totally agreeing with the above things, I will enroll as a student in TOKYO SCHOOL.') ?>
        </td>
    </tr>
        <tr>
            <td style="text-align:left;">
                 <?php echo CHtml::submitButton(Yii::t('strings','Back'), array(
                    'id'=>'select_back_register',
                    'onclick'=>'return backHome();'
                )) ?>               
            </td>
            <td style="text-align: right;">
                <?php echo CHtml::submitButton(Yii::t('strings','Next'), array(
                    'id'=>'select_next_register',
                 //   'onclick'=>'return registerStudent();'
                )) ?>
            </td>
        </tr>
</table>
<?php $this->endWidget(); ?>